package com.sw.fastdev.activity;

import android.content.Intent;
import android.os.Build;
import android.os.SystemClock;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.WindowManager;

import com.jaeger.library.StatusBarUtil;
import com.sw.fastdev.R;

public class SplashActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        new Thread() {
            @Override
            public void run() {
                SystemClock.sleep(2500);
                Intent intent = new Intent(SplashActivity.this, MainActivity.class);
                startActivity(intent);
                finish();
            }
        }.start();
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void setStatusBar() {
        mStatusBarColor = getResources().getColor(R.color.splash_back_color);
        mAlpha = 0;
        StatusBarUtil.setColor(SplashActivity.this,mStatusBarColor,mAlpha);
    }
}
